package com.spa.application.query.shop;

import com.spa.application.query.PageQuery;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class ShopFeedbackQuery extends PageQuery {

    @NotNull(message = "类型必填")
    @Size(min = 2, max = 2, message = "类型只能是两位")
    @Pattern(regexp= "^(10|20)$", message = "类型：10反馈，20投诉举报")
    private String type;

}
